import 'package:flutter/material.dart';

class ExpandCase extends StatelessWidget {
  const ExpandCase({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      height: double.infinity,
      color: Colors.green,
      alignment: Alignment.topCenter,
      child: Padding(
        padding: EdgeInsets.all(20),
        child: Row(
          children: [
            ClipRRect(
              borderRadius: BorderRadius.circular(10),
              child: Image.network(
                'https://img0.baidu.com/it/u=794816915,1474278636&fm=253&fmt=auto&app=120&f=JPEG?w=508&h=500',
                width: 200,
                height: 200,
              ),
            ),
            SizedBox(
              width: 20,
            ),
            Expanded(
              flex: 1,
              child: ClipRRect(
                borderRadius: BorderRadius.circular(20),
                child: Container(
                  color: Colors.pink,
                  height: 200,
                ),
              ),
            )
          ],
        ),
      ),
    );
  }
}
